<include file="./header"   title="后台首页"/>
<script charset="utf-8" src="http://map.qq.com/api/js?v=2.exp&key=FO5BZ-2AC2G-ACAQV-I5BD3-YX65K-76BUB"></script>

<script type="text/javascript">

    $(function () {



    });

</script>

<!-- content start -->
<div class="admin-content">

    <div class="am-cf am-padding">
        <div class="am-fl am-cf"><strong class="am-text-primary am-text-lg">首页</strong></div>
    </div>

    <form action="" method="post" enctype="multipart/form-data" class="am-form am-form-inline">
    
        <div class="am-g">
            <div class="am-u-md-12 am-cf">
                <div class="am-cf">
                    <div class="am-cf">
                        <div class="am-cf">
                            <div class="am-u-sm-6 am-u-md-4 am-u-end am-input-group">
                                <input name="mobile" type="text" class="am-form-field" id="mobile" placeholder="手机号">
                            </div>
                            
                            <button type="submit" class="am-btn am-btn-primary am-btn-xs">查询</button>
                        </div>

                    </div>
                </div>
            </div>

        </div>

    </form>
    
    <div class="am-g">
        <div class="am-u-sm-12">
            <table class="am-table am-table-bd am-table-striped admin-content-table">
                <thead>
                    <tr>
                        <th>手机号</th><th>姓名</th><th class="am-hide-sm-only">学号</th><th>品牌</th><th>车牌号</th><th class="am-hide-sm-only">报名时间</th><th>状态</th><th>操作</th>
                    </tr>
                </thead>
                <tbody>
                <foreach name="list" item="val">
                    <tr>
                        <td>{$val.mobile}</td>
                        <td>{$val.truename}</td>
                        <td class="am-hide-sm-only">{$val.studentid}</td>
                        <td>{$val.brand}</td>
                        <td>{$val.productid}</td>
                        <td class="am-hide-sm-only">{$val.createtime|date="Y-m-d H:i:s",###}</td>
                        <if condition="$val.status eq 0">
                            <td>待审核</td>
                            <elseif condition="$val.status eq 1"/>
                            <td>已完成</td>
                        </if> 
                        <td>
                            <if condition="$val.status eq 0">
                            <a href="{:U('Index/valid?id='.$val['id'])}" class="am-btn am-btn-success am-btn-xs"  role="button"><span class="am-icon-file-o"></span> 审核</a>
                            </if>
                        </td>
                    </tr>
                </foreach>
                </tbody>
            </table>
            <div class="am-cf">
                共 {$count} 条记录
                <div class="am-fr">
                    <ul class="am-pagination">
                        {$page}
                    </ul>
                </div>
            </div>
            <hr />
            <p>注：.....</p>
        </div>
    </div>


</div>
<!-- content end -->
<include file="./footer" />